/**
 * Browser v0.1
 */
var browser = {};
var browserua = navigator.userAgent.toLowerCase();
if (window.ActiveXObject) {
	browser.ie = browserua.match(/msie ([\d.]+)/)[1];
} else if (document.getBoxObjectFor) {
	browser.firefox = browserua.match(/firefox\/([\d.]+)/)[1];
} else if (window.MessageEvent && !document.getBoxObjectFor) {
	browser.chrome = browserua.match(/chrome\/([\d.]+)/)[1];
} else if (window.opera) {
	browser.opera = browserua.match(/opera.([\d.]+)/)[1];
} else if (window.openDatabase) {
	browser.safari = browserua.match(/version\/([\d.]+)/)[1];
}